import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.List;


public class Main {
   
   public static boolean isSlow = true;
   private List<Checker> checkerList;
   public static Main main;

   public static void main(String[] args) {
      try {
         main = new Main();
      } catch (Exception e) {
         e.printStackTrace();
      }
   }
   
   public Main() throws MalformedURLException, InterruptedException {
      checkerList = new ArrayList<Checker>();
      checkerList.add(new Checker());
      
   }

   public void like() {
      Robot robot = null;
      try {
         robot = new Robot();
      } catch (AWTException e) {}
      robot.mouseMove(400, 150);
      robot.mousePress(InputEvent.BUTTON1_MASK);
      robot.mouseRelease(InputEvent.BUTTON1_MASK);
      isSlow = true;
      for (Checker checker : checkerList) {
         checker.alive = false;
      }
      System.exit(0);
   }

   public void fast() {
      isSlow = false;
      for (int i = 0; i < 9; i++) {
         try {
            checkerList.add(new Checker());
         } catch (Exception e) {}
      }
   }

}
